package cn.rayYee.utils {
	import flash.display.MovieClip;
	import flash.display.DisplayObjectContainer;
	import flash.utils.getDefinitionByName;
	public class DisplayManager
	{
		public function DisplayManager() {
			
		}
		
		public static function getMC(name_mc:String):MovieClip{
			var _mc:MovieClip
			var _myClass:Class = getDefinitionByName(name_mc) as Class;
			_mc=new _myClass
			return _mc
		}
		public static function removeAllChildren( container:DisplayObjectContainer ):void {
			var count:int = container.numChildren;
			if (count <= 0)	return;
			for ( var i:int = 0; i < count; i++ ) {
				container.removeChildAt( 0 );
			}
		}
	}
}